﻿namespace UtilZ.Dotnet.Ex.Base
{
    /// <summary>
    /// 字节顺序,只对多字节数据有效
    /// int value = 0b00000000000000000000000101101101;
    /// 小端序列:01101101 00000001 00000000 00000000
    /// 大端序列:00000000 00000000 00000001 01101101
    /// </summary>
    public enum ByteSequence
    {
        /// <summary>
        /// 小端.数据低位字节在左,高位字节在右.
        /// 示例:int value = 0b00000000000000000000000101101101;小端序列:01101101 00000001 00000000 00000000
        /// </summary>
        LittleEndian,

        /// <summary>
        /// 大端.数据低位字节在右,高位字节在左.
        /// 示例:int value = 0b00000000000000000000000101101101;大端序列:00000000 00000000 00000001 01101101
        /// </summary>
        LargeEndian
    }
}
